 function Swipe(container){
 	//获得第一个子节点
 	var element = container.find(":first");

 	//滑动对象
 	var swipe = {};

 	//li页面的数量
 	var slides = element.find("li");
 	//获取容器的尺寸
 	var width = container.width();
 	var height = container.height();
 	//设置li页面的总宽度
 	element.css({
 		"width":(slides.length*width)+"px",
 		"height":height+"px"
 	});
 	slides.each(function(index,el){
 		$(el).css({
 			"width":width+"px",
 			"height":height+"px"
 		});
 	});
 	swipe.scrollTo = function(x,speed){
 		//执行动画
 		element.css({
 			"transition-timing-function":"linear",
 			"transition-duration":speed+"ms",
 			"transform":"translate3d(-"+x+"px,0px,0px)"
 		});
 		return this;
 	};
 	return swipe;

 }